package com.hutu.scoring;

import java.util.HashMap;
import java.util.Map;

public class ScoringFactory {
    private static final Map<String, ScoringStrategy> SCORING_MAP = new HashMap<>();

    public static void register(String type, ScoringStrategy strategy) {
        SCORING_MAP.put(type, strategy);
    }

    public static ScoringStrategy getScoringStrategy(String appType) {
        ScoringStrategy strategy = SCORING_MAP.get(appType);
        return strategy;
    }
}
